package cn.e4j.modular.crm.service;

import cn.e4j.core.dto.impl.Dto;
import cn.e4j.modular.crm.entity.GwbfT;
import cn.e4j.modular.crm.entity.GwbflT;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *   拜访内容设置 服务类
 * </p>
 *
 * @author mengyb
 * @since 2019-04-12
 */
public interface GwbfTService extends IService<GwbfT> {
    /**
     * 查询关键项评估列表
     * @param dto
     * @param page
     * @return
     */
    List<Map<String, Object>> getList(Dto dto, Page<Object> page);

    /**
     * 获取组织列表
     * @param dto
     * @return
     */
    List<Map<String,Object>> getOrgsList(Dto dto);

    /**
     * 新增
     * @param gwbfT
     * @param gwbflT
     */
    void add(GwbfT gwbfT, GwbflT gwbflT);

    /**
     * 修改
     * @param gwbfT
     * @param gwbflT
     */
    void edit(GwbfT gwbfT, GwbflT gwbflT);

    /**
     * 删除
     * @param gwbfT
     * @param gwbflT
     */
    void delRow(GwbfT gwbfT, GwbflT gwbflT);

    /**
     * 批量删除
     * @param gwbfTList
     */
    void delRows(List<GwbfT> gwbfTList);

    /**
     * 查重
     * @param gwbfT
     * @return
     */
    Boolean existedTheParams(GwbfT gwbfT);
}
